<?php
ob_start();
	  #call all includes below
	require_once('cls_config.php');  //data base connections and sessions are stored also
	include_once 'miscellaneous.php';
	connection::start_session();
	include_once 'cls_forms.php';
	include_once 'cls_admin.php';
	include_once 'barcode.php';
?>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">

<head>

<title>SSC</title>

    <style type="text/css">
    @media print{

        body{
           width: 8.5in;
            height: 11in; 
            font-family : "Arial", Verdana, sans-serif;
            line-height: 1em;
            font-size: 12px;
            font-weight:bold;
        }
        p{
             font-family : "Arial", Verdana, sans-serif;
            line-height: 1em;
            font-size: 12px;
               font-weight:bold;
            
        }
        table.listings tr td,input{
             font-family :"Arial", Verdana, sans-serif;
            line-height: 0.89em;
            font-size: 12px;
            padding: 0;
               font-weight:bold;
        }
        table.listings tr th{
             font-family :  "Arial", Verdana, sans-serif;
            line-height: 0.89em;
            font-size: 12px;
           border-bottom: black solid thin;
            border-top: black solid thin;
            border-left: none;
            border-right: none;
               font-weight:bold;
        }
        em{
            font-weight: bolder;
        }
    }
    </style>
    <script type="text/javascript" src="jquery.js"></script>
    <script type="text/javascript" src="prototype.js"></script>
    <script type="text/javascript" src="script.js"></script>
     <script type="text/javascript" src="ssc_reg_sis.js"></script>
</head>
 <?php 
    
switch($_POST['submit']){
          
       
       
        case 'Confirm and Dowload Receipt':
        ?>
       <body onload="download_print_receipt();">
       <?php
                #this function will get all values of post and insert to table admission
                $data = admin_functions::admission_processing($_POST);
                //admin_functions::download_receipt($data);
                admission_forms::admission_receipt_print($data);
                break;
}
 ?>

 </body>
 

</html>

 